/* 
 * File:   main.cpp
 * Author: Dani
 *
 * Created on 9 de abril de 2013, 22:08
 */

#include <cstdlib>
#include "Consumibles.h"
#include <fstream>
using namespace std;




int main() {

    Consumibles* *p=new Consumibles*[3];
    p[0]=new Consumibles("Folio",20);
    p[1]=new Consumibles("Tinta",20);
    p[2]=new Consumibles("Boli",20);    
  
    guardaCSV(p,2,"fichero.txt");
    
    
    for(int i=0;i<3;i++){
    delete p[i];
    }
    delete []p;
    return 0;
}
     